<?php
namespace app\shangjia\controller;
use think\Db;

class Advertisement{
    public function add_advertisement()
    {
        return view('add_advertisement');
    }
    public function advertisement_list()
    {
        $data = Db::query("select * from man_c_g INNER JOIN man_goods on man_c_g.g_id = man_goods.g_id INNER JOIN man_user on man_c_g.u_id = man_user.u_id INNER JOIN man_comment on man_c_g.c_id = man_comment.c_id");
        return view('advertisement_list',['data'=>$data]);
    }
}